package bean.test;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

@XmlRootElement
public class Student implements Serializable {
    private String name;
    private String token;
    private int age;

    public Student(){
        super();
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;

    }

    public Student(String name,  int age,String token) {
        this.name = name;
        this.token = token;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", token='" + token + '\'' +
                ", age=" + age +
                '}';
    }
}
